package com.asset.dispoal.evidenceconfig.domain.db.mapper;

import com.asset.dispoal.evidenceconfig.domain.db.entity.BsEvidenceConfItemDetail;
import com.asset.dispoal.evidenceconfig.dto.request.BsEvidenceConfItemDetailRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.core.mapper.BaseMapper;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;
import java.util.Map;

/**
 * @author qr
 * @date 2021/10/21$
 */
@Mapper
public interface BsEvidenceConfItemDetailMapper extends BaseMapper<BsEvidenceConfItemDetail, String> {

    /**
     * 分页查询
     *
     * @param bsEvidenceConfItemDetailRequest
     * @return
     */
    List<BsEvidenceConfItemDetail> queryPage(Page<BsEvidenceConfItemDetailRequest> bsEvidenceConfItemDetailRequest);


    /**
     * 分页查询条数
     *
     * @param bsEvidenceConfItemDetailRequest
     * @return
     */
    Integer queryPageCount(@Param("record") BsEvidenceConfItemDetailRequest bsEvidenceConfItemDetailRequest);


    List<Map<String, String>> findMapper(String batchId);

    /**
     * 根据id批量删除
     *
     * @param ids
     * @param itemId
     */
    void dletByIds(@Param("ids") List<String> ids, @Param("itemId") String itmeId);

    void delByItemId(@Param("itemId") String itmeId);
}
